﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true"
    CodeBehind="P_Reservation.aspx.cs" Inherits="VSM.P_Reservation" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script type="text/javascript">
        function openMultiItemDialog() {
            var tabid = '<%= Request.QueryString["requestType"] %> ';
            javascript: Main.openCustomDialog('../../ItemPopup.aspx?ItemCategory=' + '102', 600, 610, "");
            //window.location.href= 'PartOrder.aspx';
        }

        function openCustomer() {
            var url = "Popup_Customer.aspx?CustomerCode=" + document.getElementById('hf_CustomerCode').value;
            Main.openCustomDialog(url, 650, 470);
        }

        function openVehicle() {
            var url = "Popup_Vehice.aspx?VehicleCode=S";
            Main.openCustomDialog(url, 650, 470);
        }

        function disablePopup(sender, evt) {

            var charCode = (evt.which) ? evt.which : event.keyCode;
            if (charCode == 13)
                return true;

            return true;
        }

        function PopupPrint() {

            <%Session["DocumentType"] = "RES"; %> 
            var url = "rptViewer.aspx?type=RES&ResID=" + document.getElementById('hf_ResID').value;
            window.open(url, '_self');
        };
      
       
       
    </script>
    <div>
        <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <asp:HiddenField ID="hf_ResID" runat="server" ClientIDMode="Static" />
                <h2>
                    Reservation</h2>
                <div style="margin-left: 5px; width: 99%;">
                    <hr />
                    <table border="0" width="100%">
                        <tr>
                            <td style="width: 50%">
                                <table border="0" width="100%" style="background-color: #D1D4D8;">
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            &nbsp;</td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txtDate" runat="server" AutoPostBack="True" Visible="False"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" Format="dd/MM/yyyy"
                                                PopupButtonID="ImageButton1" TargetControlID="txtDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton1" runat="Server" AlternateText="Click to show calendar"
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" Visible="False" />
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            VIN:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_VIN" runat="server" Width="70%" ClientIDMode="Static"></asp:TextBox>
                                            <asp:Button ID="btn_SelectVehicle" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF"
                                                Height="22px" Text="..." Width="18%" OnClientClick="openVehicle();" />
                                            <asp:HiddenField ID="hf_VehicleID" runat="server" ClientIDMode="Static" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Resv ID:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_SeqNo" runat="server" Width="90%" Enabled="False"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Brand/ Name:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_Brand" runat="server" ClientIDMode="Static" Width="40%"></asp:TextBox>
                                            <asp:TextBox ID="txt_VehicleName" runat="server" ClientIDMode="Static" 
                                                Width="40%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Service Staff:
                                        </td>
                                        <td class="FormLineItemAlt" valign="top" style="width: 35%">
                                            <asp:TextBox ID="txt_Receptionist" runat="server" Width="90%" Enabled="False"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Engine/ Reg No.</td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_EngineNo" runat="server" Width="40%" ClientIDMode="Static"></asp:TextBox>
                                            <asp:TextBox ID="txt_RegNo" runat="server" ClientIDMode="Static" Width="40%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            App. Time:</td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_ResDate" runat="server"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txt_DateIn_CalendarExtender0" runat="server" 
                                                Format="dd/MM/yyyy" PopupButtonID="ImageButton8" 
                                                TargetControlID="txt_ResDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton8" runat="Server" 
                                                AlternateText="Click to show calendar" Height="16px" 
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                            <asp:TextBox ID="txt_ResTime" runat="server" Width="60px"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Model:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_Model" runat="server" Width="40%" ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Delivery Time:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_DelDate" runat="server"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txt_ExpDate_CalendarExtender0" runat="server" 
                                                Format="dd/MM/yyyy" PopupButtonID="ImageButton9" TargetControlID="txt_DelDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton9" runat="Server" 
                                                AlternateText="Click to show calendar" 
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                            <asp:TextBox ID="txt_DelTime" runat="server" Width="60px"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Color Code:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_ColorCode" runat="server" Width="40%" 
                                                ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Confirm Time:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_ConfDate" runat="server"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txt_StartDate_CalendarExtender0" runat="server" 
                                                Format="dd/MM/yyyy" PopupButtonID="ImageButton10" TargetControlID="txt_ConfDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton10" runat="Server" 
                                                AlternateText="Click to show calendar" 
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                            <asp:TextBox ID="txt_ConfTime" runat="server" Width="60px"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Odometer:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_Odometer" runat="server" Width="40%" ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Customer Call:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:CheckBox ID="chk_CustomerCall" runat="server" />
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Customer Name:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_CustomerName" runat="server" Width="70%" 
                                                ClientIDMode="Static"></asp:TextBox>
                                            <asp:Button ID="btn_SelectCustomer" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF"
                                                Height="22px" Text="..." Width="18%" OnClientClick="openCustomer();" />
                                            <asp:HiddenField ID="hf_CustomerCode" runat="server" ClientIDMode="Static" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Estimate Cost:</td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_EstimateCost" runat="server"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Other Name:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_OtherName" runat="server" Width="90%" 
                                                ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Part Order Date:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_PartOrderDate" runat="server"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txt_FinishDate_CalendarExtender0" runat="server" 
                                                Format="dd/MM/yyyy" PopupButtonID="ImageButton11" 
                                                TargetControlID="txt_PartOrderDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton11" runat="Server" 
                                                AlternateText="Click to show calendar" 
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                            <asp:TextBox ID="txt_PartOrderTime" runat="server" Width="60px"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Address:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_Address" runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Part Arrival Date:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_PartArrivalDate" runat="server"></asp:TextBox>
                                            <cc1:CalendarExtender ID="txt_ActualDate_CalendarExtender0" runat="server" 
                                                Format="dd/MM/yyyy" PopupButtonID="ImageButton12" 
                                                TargetControlID="txt_PartArrivalDate">
                                            </cc1:CalendarExtender>
                                            <asp:ImageButton ID="ImageButton12" runat="Server" 
                                                AlternateText="Click to show calendar" 
                                                ImageUrl="~/Images/Calendar_scheduleHS.png" />
                                            <asp:TextBox ID="txt_PartArrivalTime" runat="server" Width="60px"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Tel/ Mobile:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_Tel" runat="server" Width="45%" ClientIDMode="Static"></asp:TextBox>
                                            <asp:TextBox ID="txt_Mobile" runat="server" ClientIDMode="Static" Width="40%"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Customer Request:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%" rowspan="2">
                                            <asp:TextBox ID="txt_CustomerRequest" runat="server" Height="53px" 
                                                TextMode="MultiLine" Width="90%"></asp:TextBox>
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Tax Code:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_TaxCode" runat="server" Width="90%" ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            &nbsp;</td>
                                        <td class="FormLineItemAlt" style="width: 15%">
                                            Contact Person:
                                        </td>
                                        <td class="FormLineItemAlt" style="width: 35%">
                                            <asp:TextBox ID="txt_ContactPerson" runat="server" Width="45%" 
                                                ClientIDMode="Static"></asp:TextBox>
                                            <asp:TextBox ID="txt_PhoneContact" runat="server" Width="40%" 
                                                ClientIDMode="Static"></asp:TextBox>
                                        </td>
                                    </tr>
                                   
                                </table>
                            </td>
                        </tr>
                    </table>
                    <table border="0" width="100%" style="background-color: #D1D4D8;">
                        <tr>
                            <td class="FormLineItem">
                                <asp:Button ID="btn_New" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF" Height="30px"
                                    OnClick="btn_New_Click" Text="New" Width="90px" />
                                <asp:Button ID="btn_Save" runat="server" BackColor="#1B7FC2" ForeColor="#FFFFFF"
                                    Height="30px" OnClick="btn_Save_Click" Text="Save" Width="90px" />
                                <asp:Button ID="btn_Print" runat="server" BackColor="#1B7FC2" 
                                    ForeColor="#FFFFFF" Height="30px" Text="Print" OnClientClick='PopupPrint();' 
                                    Width="90px" />
                            </td>
                            <td class="FormLineItem">
                                &nbsp;</td>
                            <td class="FormLineItem">
                                &nbsp;</td>
                        </tr>
                       
                        <tr>
                            <td colspan="3" class="FormLineItem">
                                <asp:Button ID="btn_AddMultiItems" Text="Add Part" BackColor="#1B7FC2" runat="server"
                                    ForeColor="#FFFFFF" Height="30px" Width="90px" OnClick="btn_AddMultiItems_Click" />
                            </td>
                        </tr>
                    </table>
                     <div style="width: 100%">
                    <table border="0" width="100%" style="background-color: #D1D4D8;">
                        <asp:GridView ID="grvPO" CssClass="GridInner" runat="server" Width="100%" BorderColor="White"
                            BackColor="White" AllowSorting="True" AutoGenerateColumns="False" CellPadding="2"
                            HeaderStyle-Height="27px" OnRowCreated="grvPO_RowCreated" CellSpacing="2" OnRowEditing="EditItem"
                            OnRowUpdating="UpdateItem" HeaderStyle-VerticalAlign="Middle" OnRowCancelingEdit="CancelEdit"
                            AllowPaging="True" OnPageIndexChanging="grvSearchResult_PageIndexChanging" PageSize="20"
                            OnRowDeleting="DeleteItem" OnRowDataBound="grvSearchResult_RowDataBound">
                             <PagerSettings Mode="NumericFirstLast" />
                            <PagerStyle BackColor="#70A0D0" Font-Bold="True" HorizontalAlign="Center" VerticalAlign="Middle" />
                            <RowStyle BackColor="#D9E0ED" BorderColor="White" BorderWidth="2px" Height="25px" />
                            <AlternatingRowStyle BackColor="#EEF1F7" BorderColor="White" BorderWidth="2px" />
                            <Columns>
                                <asp:CommandField HeaderText="Action" ShowDeleteButton="True" ShowEditButton="False"
                                    Visible="false" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    ItemStyle-Width="70px" />
                                <asp:TemplateField HeaderText="Action">
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkDelete" runat="server" Text="Delete"  OnClick="lnkDelete_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="#">
                                    <ItemStyle HorizontalAlign="Center" Width="20px" />
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_No" runat="server" Text='<%# Bind("No") %>' BorderStyle="none">

                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Code">
                                    <ItemStyle HorizontalAlign="Left" Width="10px" />
                                    <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_DetailCode" runat="server" Text='<%# Bind("DetailCode") %>' ></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Part NBR">
                                    <ItemStyle HorizontalAlign="Left" Width="100px" />
                                    <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_ItemCode" runat="server" Text='<%# Bind("ItemCode") %>' OnTextChanged="TextBox_Change" AutoPostBack="true"
                                           ></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>

                                <asp:TemplateField HeaderText="Part Name">
                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                    <HeaderStyle VerticalAlign="Middle" Font-Bold="true" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_ItemName" runat="server" Text='<%# Bind("ItemName") %>' BorderStyle="none" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="VN Name">
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Left" Width="250px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_FrgnName" runat="server" Text='<%# Bind("FrgnName") %>' BorderStyle="none" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Quantity">
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Right" Width="50px" />
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_Qty" runat="server" Width="97%" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Quantity")) %>'
                                            AutoPostBack="true" OnKeyPress="return isNumberKey(this, event);" style="text-align: right"
                                            OnTextChanged="txtOrderQuantity_OnTextChanged" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Price">
                                    <HeaderStyle VerticalAlign="Middle" />
                                    <ItemStyle HorizontalAlign="Right" Width="70px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_Price" runat="server" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Price")) %>'
                                            BorderStyle="none" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="VAT">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle VerticalAlign="Middle" Width="70px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_Vat" Width="100%" runat="server" Text='<%# String.Format("{0,-15:#,##0.00}", Eval("VAT")) %>'
                                            BorderStyle="none" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Discount">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle VerticalAlign="Middle" Width="70px" />
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_DiscPrcnt" Width="100%" style="text-align: right" runat="server"
                                            Text='<%# String.Format("{0,-15:#,##0.00}", Eval("DiscPrcnt")) %>' AutoPostBack="true"
                                            OnKeyPress="return isNumberKey(this, event);" OnTextChanged="txtUnitPrice_OnTextChanged" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="P. Stock">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle VerticalAlign="Middle" Width="50px" />
                                    <ItemTemplate>
                                        <asp:Label ID="lb_Stock" runat="server" Width="100%"  Text='<%# String.Format("{0,-15:#,##0.00}", Eval("Stock")) %>'
                                            BorderStyle="none" />
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                           <HeaderStyle BackColor="#6095C9" Font-Bold="true" ForeColor="#ffffff" Font-Overline="False"
                                Height="27px" VerticalAlign="Bottom" />
                        <%--    <EmptyDataTemplate>
                            <table  style="width: 100%; border-color: White;" border="1" rules="all"
                                    cellspacing="2" cellpadding="2">
                                    <tr valign="middle" style="height: 27px; color: white; font-weight: bold; text-decoration: none;
                                        background-color: rgb(96, 149, 201);">
                                        <th>
                                            <span>Action</span>
                                        </th>
                                        <th>
                                            <span>#</span>
                                        </th>
                                        <th>
                                            <span>Part NBR</span>
                                        </th>
                                        <th>
                                            <span>Part Name</span>
                                        </th>
                                        <th>
                                            <span>VN Name</span>
                                        </th>
                                        <th>
                                            <span>Quantity</span>
                                        </th>
                                        <th>
                                            <span>Price</span>
                                        </th>
                                        <th>
                                            <span>VAT</span>
                                        </th>
                                        <th>
                                            <span>Discount</span>
                                        </th>
                                        <th>
                                            <span>P. Stock</span>
                                        </th>
                                    </tr>
                                    <tr>
                                        <th colspan="10">
                                            <span>No Data</span>
                                        </th>
                                    </tr>
                                </table>
                            </EmptyDataTemplate>--%>
                        </asp:GridView>
                    </table>
                    </div>
                </div>

                <table width="100%" border="0">
                    <tr>
                        <td>
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        <asp:Label ID="lblError" runat="server" Visible="true" Font-Bold="True" ForeColor="Red"></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <%--<asp:PostBackTrigger ControlID="btn_ImportExcel" />--%>
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>

<asp:Content ID="Content3" runat="server" contentplaceholderid="head">
    <style type="text/css">

* { margin: 2px 0 0 0; 
padding: 0; }
    </style>
</asp:Content>

